package edu.cmu.cs.webapp.ioms.models.util;

public class RecordFactory {

	 public static FinancialRecord getRecord(String type){
		if(type.equals("Month"))
			return new MonthRecord();
		if(type.equals("Quarter"))
			return new QuarterRecord();
		if(type.equals("Year"))
			return new YearRecord();
		return null;
	}
	
}
